{% extends "template/listEdit.volt" %}

{% block title %}子系统管理{% endblock %}


{% block filter %}
    <div class="col-md-4 column">
        <table>
            <tr><th>操作用户手机:</th><td><input type="text" name="origin_phone" value=""></td></tr>
            <tr>
                <th>状态:</th>
                <td><select name="status">
                        <option value="">请选择</option>
                        <option value="0">等待回复</option>
                        <option value="1">未知</option>
                        <option value="2">已通过</option>
                        <option calue="3">已拒绝</option>
                    </select></td>
            </tr>
            <tr><th></th><td></td></tr>
        </table>
    </div>
    <div class="col-md-4 column">
        <table>
            <tr><th>目标用户手机:</th><td><input type="text" name="target_phone"  value=""></td></tr>
            <tr><th></th><td></td></tr>
            <tr><th></th><td></td></tr>
        </table>
    </div>
    <div class="col-md-4 column">
        <table>
            <tr>
                <th>发送时间:</th>
                <td><input type="date-h" name="created_at_start" data-attr="date" value="">-<input type="date-h" name="created_at_end" data-attr="date right" class="end" value=""></td>
            </tr>
            <tr><th></th><td></td></tr>
            <tr>
                <td colspan="2">
                    <div id="btn_reset_param" class="btn-0 button">清 空</div>
                    <div id="btn_search_data" class="btn-1 button">过 滤</div>
                </td>
            </tr>
        </table>
    </div>
{% endblock %}

{% block jscontent %}

    <script>
        $(function () {
            PageDataProxy.init({
                "url": "/subsystem/addUserLog",
                "table_id":"#mytable",
                "page_control_id":"#data-wrap",
                "page_size_id":"#rows-perpage-select",
                "page_total_id":"#data_count_total",
                "use_check_box":false,
                "data_field_process":function(name,value){
                    if(name=="company"){
                        return PageDataProxy.formatShortContent(value,18);
                    }
                    return value;
                },
                "table_style":{
                    "id":"",
                    "origin_phone":"width-m",
                    "target_phone":"width-m",
                    "receive_at":"width-m",
                    "created_at":"width-m"
                }
            });
            DataAttrBinder.init();

        })
    </script>
{% endblock %}